package com.cn.yds.bdy.service;

import com.cn.yds.bdy.dao.model.UserModel;
import com.cn.yds.bdy.vo.UpdateVo;
import com.cn.yds.bdy.vo.UserProfileVo;
import com.cn.yds.bdy.vo.UserVo;

public interface UserService {

    /**
     *  user login service;
     * @param userVo
     * @return boolean : login success or fail
     */
    UserModel getUserByLoginIdAndPw(UserVo userVo);


    /**
     * Update user detail
     * @param userProfileVo UpdateVo
     * @return status int; not 0 is success ; 0 is fail.
     */
    int updateUserInfo(UserProfileVo userProfileVo);

    /**
     * Get user by login id
     * @param loginId loginid
     * @return UserModel
     */
    UserModel getUserByLoginId(String loginId);

    /**
     * Get user by  id
     * @param id id
     * @return UserModel
     */
    UserModel getUserById(Integer id);





}
